﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.YWDF
{
    /// <summary>
    /// 业务订房记录详细信息
    /// </summary>
    [Serializable]
    public class ywdf_order_detail
    {
        #region 数据表名称
        public static readonly string TableName = "ywdf_order_detail";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// id
            /// </summary>
            public static readonly string id = @"id";

            /// <summary>
            /// 所属订房记录ID
            /// </summary>
            public static readonly string order_id = @"order_id";

            /// <summary>
            /// 订房ID
            /// </summary>
            public static readonly string room_id = @"room_id";

            /// <summary>
            /// 订房数量
            /// </summary>
            public static readonly string count = @"count";

            /// <summary>
            /// 需求描述
            /// </summary>
            public static readonly string detail_describe = @"detail_describe";

            /// <summary>
            /// 排序标志
            /// </summary>
            public static readonly string order_flag = @"order_flag";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string id { get; set; }

        /// <summary>
        /// 记录所属订单
        /// </summary>
        public virtual ywdf_order order{ get; set; }

        /// <summary>
        /// 记录订房房信息
        /// </summary>
        public virtual ywdf_room room { get; set; }

        /// <summary>
        /// 订房数量
        /// </summary>
        public virtual int count { get; set; }

        /// <summary>
        /// 需求描述
        /// </summary>
        public virtual string detail_describe { get; set; }

        /// <summary>
        /// 排序标志
        /// </summary>
        public virtual int order_flag { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}

